 # -*- coding: UTF-8 -*-

import requests

def  getHtml(url):
	header = {
	'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36',
	'Cookie': '548914842=5e51KgVRL6Ps8EyM4WNMxe2A5EvPvGV%2BpdJ%2Bwt8A8Q; _gat=1; 548914842=b0feNG7DECd6Kxj42Ta7DegfMV8ZmEnktyUUcss1VQ; jdna=596e6fb28c1bb47f949e65e1ae03f7f5#1474033663879; _ga=GA1.2.43093967.1474030972; Hm_lvt_fd93b7fb546adcfbcf80c4fc2b54da2c=1474030973,1474033387; Hm_lpvt_fd93b7fb546adcfbcf80c4fc2b54da2c=1474033664'
	}
	r = requests.get(url, headers = header)
	if r.status_code == 200:
		print(r.encoding)
		#print(r.content)
		return r.content

	else:
		print('httpcode:%d'%(r.status_code))
		return ''





